# 1. 书写代码求 `0-100之间所有奇数的累加和`
# 2. 计算1000以内所有不能被7整除的整数之和

num = 0
sum1 = 0
while num <= 100:
    if num % 2 != 0:
        sum1 = sum1 + num
    num += 1
print(f'0-100之间所有奇数的累加和为{sum1}')

num = 0
sum1 = 0
while num <= 1000:
    if num % 7 != 0:
        sum1 = sum1 + num
    num += 1
print(f'1000以内所有不能被7整除的整数之和为{sum1}')
